/**
 * 
 */
package com.content.shuiwu.action;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.context.annotation.Scope;
import org.springframework.stereotype.Controller;

import com.base.frame.common.BaseAction;
import com.content.shuiwu.service.TaxOrgService;

/**
 * @author Administrator
 *
 */
@Controller("taxOrgAction")
@Scope("prototype")
public class TaxOrgAction extends BaseAction {

	/**
	 * 
	 */
	private static final long serialVersionUID = 811895694146002597L;
	
	@Autowired
	TaxOrgService taxOrgServiceImpl;
	
	public String getTaxOrg()
	{
		String org_id = request.getParameter("org_id");
		Integer orgid = new Integer(org_id);
		String taxOrgs = taxOrgServiceImpl.getAllTaxOrg(orgid);
		return toJsonData(taxOrgs);
	}
	
	public String getTaxOrgInfo(){
		String org_id = request.getParameter("org_id");
		String taxOrg = taxOrgServiceImpl.getTaxOrgInfoName(Integer.parseInt(org_id));
		return toJsonData(taxOrg);
	}

}
